home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
irc_i_dodatki
/
mcf4amirc
/
rexx
/
mcf_okb.amirx
< prev
next >
Wrap
Text File
|
1996-09-17
|
1KB
|
10 lines
/* MCF_OKB.AMIRX
// $VER: MCF_OKB.AMIRX 4.1 (02.08.96)
\\ Written by Donald T. Becker (dtbecker@prolog.net) IRC: StarDustr
// Please mail any bug reports/comments to the above address with a subject
\\ header of MCF.AMIRX.
//
\\ ** What to do with this file?
// Put this script in REXX: It will be used by MCF.AMIRX.
*/
;parse arg MCFenv MyNick Unick CurCh jdata Rnick reason;OPTIONS RESULTS;if ":%OKB" ~=upper(jdata) then signal Master;address value(MCFenv);Unick=upper(Unick);Rnick=upper(Rnick);Client=substr(MCFenv,pos(".",MCFenv)+1);CName=CurCh||"."||Client;ChUs=getclip(value(CName));signal DoIt;Master:;if MCFenv="" then exit;reason=MyNick Unick CurCh jdata Rnick||reason;Rnick=upper(MCFenv);getmynick;MyNick=upper(result);getchannel;CurCh=result;getusers;ChUs=upper(result);Unick=MyNick;signal DoIt;DoIt:;if 0=pos(Rnick,ChUs) then;IPAddr=Rnick;else;do;userhost Rnick;IPAddr=upper(result);atpos=pos("@",IPAddr)+1;IPAddr=substr(IPAddr,atpos);end;xl=length(IPAddr);userhost MyNick;if right(upper(result),xl)=IPAddr then;do;userhost Unick;if right(upper(result),xl) ~=IPAddr then exit;end;if reason="" then;reason="How do ya like them OPs???";UIP="*!*@"||IPAddr;"say /op " CurCh RNick;"say /kick " CurCh RNick reason;"say /ban " CurCh UIP;exit